﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DMHelper.Models
{
    public class StatsContainer
    {
        public NumericalField Speed = new NumericalField();
        public AdditionNumericalField Initiative = new AdditionNumericalField();
        public NumericalField baseInitative = new NumericalField();
        public NumericalField miscInitiative = new NumericalField();

        public Dictionary<String, AbilityContainer> listAbilities = new Dictionary<String, AbilityContainer>();

        public AbilityContainer ability(String abilityName)
        {
            return listAbilities[abilityName];
        }

        public StatsContainer()
        {

            Initiative.listeModifier.Add(baseInitative);
            Initiative.listeModifier.Add(miscInitiative);

            listAbilities.Add("Str", new AbilityContainer("Strength", 0));
            listAbilities.Add("Dex", new AbilityContainer("Dexterity", 0));
            listAbilities.Add("Con", new AbilityContainer("Constitution", 0));
            listAbilities.Add("Cha", new AbilityContainer("Charisma", 0));
            listAbilities.Add("Wis", new AbilityContainer("Wisdom", 0));
            listAbilities.Add("Int", new AbilityContainer("Intelligence", 0));
        }
    }
}